﻿@model IEnumerable<Model.ViewModel.CreditSetup>

<!-- Single button -->
<div class="btn-group">
    <button type="button" class="btn btn-danger dropdown-toggle" data-toggle="dropdown">
        选择桌号 <span class="caret"></span>
    </button>
    <ul class="dropdown-menu" role="menu">
        @{
            int i=1;
            foreach(var g in Model){
               <li>@Ajax.ActionLink(@g.CreditName, "Sale_Credit", "Sale", new { id = @g.CreditID }, new AjaxOptions() { UpdateTargetId = "CreditSale_List", HttpMethod = "Post", Confirm = " 确定", OnComplete = "oncomplete" })</li>
            
            if(i%5==0)
            {<li class="divider"></li> }
                i++;
          
          }}
    </ul>
</div>


